/*
 * @Author: wangshuixin 2412658453@qq.com
 * @Date: 2025-04-03 16:15:01
 * @LastEditors: wangshuixin 2412658453@qq.com
 * @LastEditTime: 2025-04-30 13:03:55
 * @FilePath: \my-app\src\utils\pinyin.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

// 转换拼音数据
export const convertPinyinArray = (arr: string[], pinyin: string) => {
  return arr.map((word: string) => ({
    word: word,
    pinyin: pinyin
  }))
}

export const a = ['阿', '啊', '呵', '锕', '腌', '嗄', '吖', '錒', '醃']
// prettier-ignore
export const ai = ['哎', '哀', '埃', '挨', '唉', '嗳', '皑', '癌', '矮', '蔼', '艾', '爱', '隘', '碍']
export const an = ['安', '桉', '氨', '鞍', '庵', '铵', '俺', '埯', '唵', '揞', '岸', '按', '案', '胺', '暗']
export const ang = ['肮', '昂', '盎']
export const ao = ['凹', '袄', '傲', '奥', '熬', '懊', '敖', '翱', '澳', '拗', '嗷', '骜', '遨']
// prettier-ignore
export const ba = ['八', '扒', '叭', '巴', '芭', '吧', '疤', '笆', '粑', '捌', '拔', '跋', '把', '钯', '爸', '耙', '罢', '霸', '靶']
export const bai = ['掰', '白', '百', '佰', '柏', '摆', '败', '稗', '拜']
export const ban = ['扳', '颁', '班', '斑', '般', '癍', '板', '版', '办', '半', '舨', '伴', '拌', '绊', '扮', '瓣']
export const bang = ['邦', '帮', '梆', '浜', '绑', '榜', '膀', '蚌', '棒', '傍', '谤', '磅']
// prettier-ignore
export const bao = ['包', '苞', '孢', '胞', '炮', '剥', '煲', '褒', '雹', '薄', '饱', '宝', '保', '葆', '堡', '报', '刨', '抱', '鲍', '暴', '爆', '豹', '瀑', '鸨', '褓', '趵', '龅']
// prettier-ignore
export const bei = ['杯', '卑', '碑', '背', '悲', '北', '贝', '狈', '褙', '备', '惫', '倍', '焙', '碚', '蓓', '被', '辈', '臂', '呗']
export const ben = ['奔', '本', '苯', '笨']
export const beng = ['崩', '绷', '甭', '泵', '迸', '蚌', '蹦']
// prettier-ignore
export const bi = ['逼', '鼻', '匕', '比', '彼', '笔', '鄙', '币', '弊', '必', '毕', '庇', '陛', '毙', '闭', '痹', '敝', '蔽', '弼', '愎', '蓖', '辟', '壁', '避', '臂', '璧', '碧', '篦']
export const bian = ['边', '编', '煸', '鞭', '贬', '扁', '匾', '卞', '变', '便', '遍', '辨', '辩', '辫']
export const biao = ['标', '彪', '骠', '膘', '镖', '飙', '表', '裱', '鳔', '表', '婊']
export const bie = ['瘪', '憋', '鳖', '别', '蹩']
export const bin = ['宾', '滨', '缤', '彬', '斌', '濒', '殡', '鬓']
export const bing = ['冰', '并', '兵', '槟', '丙', '柄', '炳', '秉', '饼', '屏', '禀', '病']
// prettier-ignore
export const bo = ['拨', '波', '玻', '菠', '钵', '剥', '播', '伯', '帛', '泊', '柏', '驳', '勃', '脖', '博', '膊', '薄', '䟦', '簸', '卜']
export const bu = ['捕', '卜', '补', '捕', '哺', '堡', '不', '布', '怖', '步', '埔', '部', '簿']
export const ca = ['拆', '擦', '嚓']
export const cha = ['叉', '差', '插', '喳', '茶', '查', '搽', '碴', '槎', '察', '衩', '蹅', '岔', '诧', '刹']
export const cai = ['猜', '才', '材', '财', '裁', '采', '彩', '踩', '睬', '菜', '蔡']
export const chai = ['拆', '钗', '差', '柴', '豺']
export const can = ['参', '餐', '残', '蚕', '惭', '惨', '灿', '璨']
export const chan = ['掺', '搀', '单', '婵', '禅', '蝉', '谗', '潺', '缠', '产', '铲', '阐', '忏', '颤']
export const cang = ['藏', '仓', '沧', '舱', '苍', '伧']
// prettier-ignore
export const chang = ['伥', '昌', '猖', '娼', '长', '场', '肠', '尝', '偿', '常', '裳', '厂', '敞', '畅', '倡', '唱', '嫦']
export const cao = ['操', '糙', '曹', '槽', '嘈', '草']
export const chao = ['抄', '吵', '钞', '超', '焯', '剿', '晁', '巢', '朝', '嘲', '潮', '炒']
export const ce = ['册', '厕', '侧', '测', '恻', '策']
export const che = ['车', '尺', '扯', '彻', '撤', '澈']
export const cen = ['参', '岑', '涔']
export const chen = ['抻', '琛', '嗔', '臣', '辰', '晨', '尘', '忱', '沉', '陈', '衬', '称', '趁']
export const ceng = ['噌', '层', '曾', '蹭']
// prettier-ignore
export const cheng = ['称', '撑', '瞠', '成', '诚', '城', '盛', '丞', '呈', '程', '承', '乘', '惩', '澄', '橙', '逞', '骋', '秤']
export const ci = ['词', '刺', '差', '疵', '祠', '雌', '瓷', '兹', '慈', '磁', '辞', '此', '次', '伺', '赐']
// prettier-ignore
export const chi = ['吃', '痴', '池', '弛', '驰', '迟', '持', '尺', '齿', '侈', '耻', '豉', '叱', '斥', '赤', '炽', '翅', '哧']
export const cu = ['粗', '促', '猝', '卒', '醋']
// prettier-ignore
export const chu = ['出', '初', '刍', '雏', '除', '厨', '橱', '锄', '躇', '处', '杵', '础', '储', '楚', '畜', '触', '矗']
export const cou = ['凑', '辏', '楱', '腠', '湊', '輳', '揍', '㫶', '傶']
export const chou = ['抽', '仇', '帱', '筹', '踌', '惆', '绸', '酬', '愁', '丑', '瞅', '臭']
export const cuo = ['搓', '撮', '痤', '挫', '锉', '措', '错', '磋']
export const chuo = ['戳', '龊', '啜', '绰']
export const cui = ['崔', '催', '璀', '脆', '翠', '萃', '淬', '瘁', '粹']
export const chui = ['吹', '炊', '垂', '陲', '捶', '锤', '槌', '椎']
export const cun = ['村', '存', '蹲', '忖', '寸']
export const chun = ['春', '纯', '唇', '淳', '鹑', '醇', '蠢']
export const cong = ['匆', '葱', '囱', '聪', '从', '丛', '淙']
export const cuan = ['撺', '蹿', '攒', '窜', '篡', '汆']
export const chong = ['冲', '忡', '充', '舂', '憧', '虫', '重', '崇', '宠', '铳']
export const chuan = ['川', '氚', '穿', '传', '船', '喘', '串']
export const chuai = ['揣', '踹']
export const chuang = ['窗', '创', '疮', '床', '幢', '闯', '怆']
export const da = ['哒', '搭', '答', '打', '达', '瘩', '大']
export const dai = ['呆', '待', '歹', '逮', '代', '袋', '黛', '迨', '殆', '带', '戴', '贷', '怠']
export const dan = ['丹', '担', '单', '但', '诞', '淡', '氮', '弹', '蛋']
export const dang = ['当', '裆', '铛', '挡', '党', '档', '凼', '荡', '砀']
export const dao = ['刀', '叨', '倒', '导', '岛', '捣', '祷', '蹈', '到', '焘', '盗', '悼', '道', '稻']
export const de = ['得', '德', '地', '的', '嘚']
export const deng = ['灯', '登', '蹬', '等', '邓', '凳', '瞪']
// prettier-ignore
export const di = ['氐', '低', '堤', '提', '滴', '狄', '迪', '笛', '的', '敌', '涤', '嫡', '邸', '抵', '底', '地', '第', '弟', '递', '帝', '谛', '蒂', '缔', '棣', '骶', '翟']
export const diao = ['刁', '叼', '凋', '碉', '雕', '鲷', '貂', '屌', '吊', '钓', '调', '掉']
// prettier-ignore
export const dian = ['掂', '滇', '颠', '巅', '癫', '典', '碘', '点', '踮', '电', '佃', '甸', '店', '惦', '垫', '淀', '靛', '奠', '殿']
export const die = ['爹', '跌', '迭', '谍', '碟', '蝶', '喋', '牒', '堞', '鲽', '叠', '耋', '垤']
export const ding = ['丁', '仃', '叮', '盯', '钉', '疔', '顶', '鼎', '订', '定', '啶', '腚', '锭', '町', '酊', '碇']
export const diu = ['丢', '铥', '颩', '銩']
export const dong = ['东', '冬', '咚', '董', '懂', '动', '冻', '栋', '洞', '氡', '侗', '硐', '垌']
export const dou = ['都', '兜', '蔸', '篼', '斗', '抖', '蚪', '钭', '陡', '豆', '逗', '痘', '荳', '窦']
export const du = ['都', '嘟', '督', '毒', '独', '读', '渎', '犊', '肚', '堵', '赌', '睹', '杜', '妒', '度', '渡', '镀']
export const duan = ['端', '偳', '耑', '短', '段', '缎', '煅', '锻', '断', '椴', '簖', '塅', '葮']
export const dui = ['堆', '队', '对', '兑', '敦', '碓', '怼', '対']
// prettier-ignore
export const dun = ['吨', '敦', '墩', '蹲', '盹', '囤', '炖', '钝', '盾', '遁', '顿', '礅', '镦', '惇', '沌', '趸', '坉', '砘', '楯']

// 汉语词典库
export const pinyin = [
  ...convertPinyinArray(a, 'a'),
  ...convertPinyinArray(ai, 'ai'),
  ...convertPinyinArray(an, 'an'),
  ...convertPinyinArray(ang, 'ang'),
  ...convertPinyinArray(ao, 'ao'),
  ...convertPinyinArray(ba, 'ba'),
  ...convertPinyinArray(bai, 'bai'),
  ...convertPinyinArray(ban, 'ban'),
  ...convertPinyinArray(bang, 'bang'),
  ...convertPinyinArray(bao, 'bao'),
  ...convertPinyinArray(bei, 'bei'),
  ...convertPinyinArray(ben, 'ben'),
  ...convertPinyinArray(beng, 'beng'),
  ...convertPinyinArray(bi, 'bi'),
  ...convertPinyinArray(bian, 'bian'),
  ...convertPinyinArray(biao, 'biao'),
  ...convertPinyinArray(bie, 'bie'),
  ...convertPinyinArray(bin, 'bin'),
  ...convertPinyinArray(bing, 'bing'),
  ...convertPinyinArray(bo, 'bo'),
  ...convertPinyinArray(bu, 'bu'),
  ...convertPinyinArray(ca, 'ca'),
  ...convertPinyinArray(cha, 'cha'),
  ...convertPinyinArray(cai, 'cai'),
  ...convertPinyinArray(chai, 'chai'),
  ...convertPinyinArray(can, 'can'),
  ...convertPinyinArray(chan, 'chan'),
  ...convertPinyinArray(cang, 'cang'),
  ...convertPinyinArray(chang, 'chang'),
  ...convertPinyinArray(cao, 'cao'),
  ...convertPinyinArray(chao, 'chao'),
  ...convertPinyinArray(ce, 'ce'),
  ...convertPinyinArray(che, 'che'),
  ...convertPinyinArray(chen, 'chen'),
  ...convertPinyinArray(ceng, 'ceng'),
  ...convertPinyinArray(cheng, 'cheng'),
  ...convertPinyinArray(ci, 'ci'),
  ...convertPinyinArray(chi, 'chi'),
  ...convertPinyinArray(cu, 'cu'),
  ...convertPinyinArray(chu, 'chu'),
  ...convertPinyinArray(cou, 'cou'),
  ...convertPinyinArray(chou, 'chou'),
  ...convertPinyinArray(cuo, 'cuo'),
  ...convertPinyinArray(chuo, 'chuo'),
  ...convertPinyinArray(cui, 'cui'),
  ...convertPinyinArray(chui, 'chui'),
  ...convertPinyinArray(cun, 'cun'),
  ...convertPinyinArray(chun, 'chun'),
  ...convertPinyinArray(cong, 'cong'),
  ...convertPinyinArray(cuan, 'cuan'),
  ...convertPinyinArray(chong, 'chong'),
  ...convertPinyinArray(chuan, 'chuan'),
  ...convertPinyinArray(chuai, 'chuai'),
  ...convertPinyinArray(chuang, 'chuang'),
  ...convertPinyinArray(da, 'da'),
  ...convertPinyinArray(dai, 'dai'),
  ...convertPinyinArray(dan, 'dan'),
  ...convertPinyinArray(dang, 'dang'),
  ...convertPinyinArray(dao, 'dao'),
  ...convertPinyinArray(de, 'de'),
  ...convertPinyinArray(deng, 'deng'),
  ...convertPinyinArray(di, 'di'),
  ...convertPinyinArray(diao, 'diao'),
  ...convertPinyinArray(dian, 'dian'),
  ...convertPinyinArray(die, 'die'),
  ...convertPinyinArray(ding, 'ding'),
  ...convertPinyinArray(diu, 'diu'),
  ...convertPinyinArray(dong, 'dong'),
  ...convertPinyinArray(dou, 'dou'),
  ...convertPinyinArray(du, 'du'),
  ...convertPinyinArray(duan, 'duan'),
  ...convertPinyinArray(dui, 'dui'),
  ...convertPinyinArray(dun, 'dun')
]
